﻿using FDSimpleModelGenerator.Common.Enums;

namespace FDSimpleModelGenerator.IServices
{
    /// <summary>
    /// 数据库转到语言类型器
    /// </summary>
    public interface IDataTypeMapperService
    {
        /// <summary>
        /// 语言类型
        /// </summary>
        LanguageDataType LanguageDataType { get; }

        /// <summary>
        /// 数据库类型转为语言类型
        /// </summary>
        /// <param name="dbType"></param>
        /// <param name="isUnsigned"></param>
        /// <returns></returns>
        string Map(string dbType, bool isUnsigned = false);

    }
}
